from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('market.controller',
    (r'^celibax/$',                'viewMarket'),
    (r'^sellAsset/$',              'sellAsset'),
    (r'^SubmitNewRepartition/$',   'SubmitNewRepartition'),
    (r'^SubmitNewStrategyMtmRep/$','SubmitNewStrategyMtMRep'),
    (r'^rules/$',                  'celibaxRules'),
    (r'^logoutView/$',             'logoutView'),
)

urlpatterns += patterns('market.jsonController',
	(r'^json/getPlayerMainView/$', 'jsonPlayerMainView'),
	(r'^json/getMarketView/$', 'jsonMarketView'),
	(r'^json/getPricesHistory/$', 'jsonPricesHistory'),
    (r'^json/getMtMsHistory/$', 'jsonMtMsHistory'),
    (r'^json/getRanking/$', 'jsonGetRanking'),
    (r'^json/getPlayerMtMMainView/$', 'jsonPlayerMainViewInMtM'),
    (r'^json/getPlayerMainViewQty/$', 'jsonPlayerMainViewQty')
)


urlpatterns += patterns('',

    # wy do we have to suppress those 2 lines?
    # authentification account
    (r'^login/$', 'django.contrib.auth.views.login'),
                        
    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)

# static file
urlpatterns += staticfiles_urlpatterns()
